AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')

function ENT:Initialize()
	self.Entity:SetModel( "models//props_phx//torpedo.mdl" )
	self.BaseClass.Initialize(self)
	
	self.Entity.speed = 100
	self.Entity.minspeed = 100
	self.Entity.maxspeed = 600
	self.Entity.acceltime = 6
	
	local hackent = ents.Create("helper_point")
	hackent:SetPos(self.Entity:LocalToWorld(Vector(-80, 0, 10)))
	hackent:Spawn()
	hackent:SetParent(self.Entity)
	local trail = util.SpriteTrail(hackent, 0, self.Entity.Color, false, 10, 0, 3.2, 0.25, "trails/plasma.vmt")
	--trail:SetParent(self.Entity)
end

function ENT:DrawImpact()
	CDEffect_explosion_primitive(self.Entity:GetPos())
end

